<?php

namespace app\common\logic\common;

use app\common\model\Province;

class Area
{
    public static function getAreaTree()
    {
        $list = Province::with(['children','children.children'])->select();
        return $list;
    }
    
    public static function getCityTree()
    {
        $list = Province::with(['children'])->select();
        return $list;
    }
}